﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Puzzle
{

    [Serializable]
    public class Tile
    {
        public int top;
        public int left;
        public int right;
        public int bottom;
        
        public bool isEdgePiece()
        {
            int numZeroes = 0;
            if (top == 0)
                numZeroes++;
            if (left == 0)
                numZeroes++;
            if (right == 0)
                numZeroes++;
            if (bottom == 0)
                numZeroes++;

            if (numZeroes == 1)
                return true;
            
            return false;

        }
        public bool isCornerPiece()
        {
            int numZeroes = 0;
            if (top == 0)
                numZeroes++;
            if (left == 0)
                numZeroes++;
            if (right == 0)
                numZeroes++;
            if (bottom == 0)
                numZeroes++;

            if (numZeroes == 2)
                return true;

            return false;

        }
        


    }

    
}
